<?=$this->form($this->element->getName(),$this->element->getAttribs(),false); ?>
<?php
echo $this->renderElement($this->element->codseccionlista);
echo $this->renderElement($this->element->opcion);

$contador=1;

$domConfig = Zend_Registry::get('domConfig');
?>
<table align="center" class="iceDatTbl zebra">
 <thead>
    <tr>
      <th colspan="4">REVISIÓN DE COMPLETITUD</th>
    </tr>
    <tr>
      <th width="5%" >No</th>
      <th width="45%">Pregunta</th>
      <th width="10%">Respuesta</th>
      <th width="40%">Observación</th>
    </tr>
   </thead>
    <?php foreach ($this->element as $elemento):
            if(App_Util_StringUtil::startsWith($elemento->getName(), "codescala_")) :
                $indice = substr($elemento->getName(), strlen("codescala_"));
                $obsElement = "justificacionvaloracion_{$indice}";
    ?>
                <tr>
                  <td style="text-align: center;"><?php echo $contador++; ?></td>
                  <td><?php echo $elemento->renderLabel(); ?></td>
                  <?php if (!$this->element->isStatic()): ?>
                  	<td style="text-align: center;"><?php echo $this->renderElement($elemento); ?></td>
                  <?php else :?>
                   <td style="text-align: center;">
                       <?php
                           //$arr_sn = $domConfig->SINO->toArray();
                           echo $valor = $this->renderElement($elemento);
                          // echo $arr_sn[$valor]; ?></td>
                  <?php endif;?>
                  <td><?php echo $this->renderElement ( $this->element->$obsElement ); ?></td>
                </tr>
    <?php   endif;
          endforeach;?>
    <?php if (!$this->element->isStatic()): ?>
    <tr>
      <th colspan="4" style="text-align: center;">
      <?php	echo $this->renderElement($this->element->btnSubmit); ?>
      </th>
    </tr>
    <?php endif;?>
</table>
</form>